#include "pickable.h"

Pickable::Pickable(){
    int* temp = pcm.GetUniqueColor();

    pickingColor[0] = temp[0];
    pickingColor[1] = temp[1];
    pickingColor[2] = temp[2];
}

void Pickable::GenerateNewID(){
    int* temp = pcm.GetUniqueColor();

    pickingColor[0] = temp[0];
    pickingColor[1] = temp[1];
    pickingColor[2] = temp[2];
}

int Pickable::GetPickingColorAsInt(){
    return pickingColor[0]+pickingColor[1]*255+pickingColor[2]*255*255;
}
